home *** CD-ROM | disk | FTP | other *** search
/ SOHO - Exploring the Sun - 2003 Update / SOHO - Exploring the Sun - 2003 Update.iso / pc / data / main.dcr / scripts_76.ls < prev    next >
Encoding:
Text File  |  2003-02-25  |  554 b   |  22 lines

  1. on UpdateVolume
  2.   global global_volume
  3.   if global_volume > 7 then
  4.     set global_volume to 7
  5.   end if
  6.   if global_volume < 0 then
  7.     set global_volume to 0
  8.   end if
  9.   set memb to "vol" & global_volume
  10.   set the member of sprite 102 to member memb of castLib "buttons"
  11.   set the soundLevel to global_volume
  12.   if global_volume = 0 then
  13.     if soundBusy(1) then
  14.       puppetSound(1, 0)
  15.     end if
  16.   else
  17.     if not soundBusy(1) and (the frame >= label("mm_prestart")) then
  18.       puppetSound(1, member "Sohoprg" of castLib "audio")
  19.     end if
  20.   end if
  21. end
  22.